<template>
  <div class="artists" :style="{ color: fontColor }">
    <span v-for="(artist, index) in artists" :key="artist.id">
      {{ artist.name }}
      <span v-if="index < artists.length - 1">/</span>
    </span>
  </div>
</template>

<script lang="ts">
import { Artist } from "@/model/music-info.model";
import { Vue, Component, Prop } from "vue-property-decorator";
@Component({})
export default class ArtitsComponent extends Vue {
  @Prop({ required: true, default: [] })
  artists: Artist[];
  @Prop({ default: "#666" })
  fontColor: string;
}
</script>

<style lang="scss"></style>
